home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / GNU / emacs.inst / emacs19.idb / usr / gnu / info / emacs-14.z / emacs-14
Encoding:
GNU Info File  |  1994-08-02  |  48.8 KB  |  1,255 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.54 from the
  2. input file emacs.texi.
  3.  
  4. 
  5. File: emacs,  Node: Dired Updating,  Next: Dired and Find,  Prev: Hiding Subdirectories,  Up: Dired
  6.  
  7. Updating the Dired Buffer
  8. =========================
  9.  
  10.    This section describes commands to update the Dired buffer to reflect
  11. outside (non-Dired) changes in the directories and files, and to delete
  12. part of the Dired buffer.
  13.  
  14. `g'
  15.      Update the entire contents of the Dired buffer (`revert-buffer').
  16.  
  17. `l'
  18.      Update the specified files (`dired-do-redisplay').
  19.  
  20. `k'
  21.      Delete the specified *file lines*--not the files, just the lines
  22.      (`dired-do-kill-lines').
  23.  
  24.    Type `g' (`revert-buffer') to update the contents of the Dired
  25. buffer, based on changes in the files and directories listed.  This
  26. preserves all marks except for those on files that have vanished.
  27. Hidden subdirectories are updated but remain hidden.
  28.  
  29.    To update only some of the files, type `l' (`dired-do-redisplay').
  30. This command applies to the next N files, or to the marked files if
  31. any, or to the current file.  Updating them means reading their current
  32. status from the file system and changing the buffer to reflect it
  33. properly.
  34.  
  35.    If you use `l' on a subdirectory header line, it updates the
  36. contents of the corresponding subdirectory.
  37.  
  38.    To delete the specified *file lines*--not the files, just the
  39. lines--type `k' (`dired-do-kill-lines').  This command applies to the
  40. next N files, or to the marked files if any, or to the current file.
  41.  
  42.    If you kill the line for a file that is a directory, the directory's
  43. contents are also deleted from the buffer.  Typing `C-u k' on the
  44. header line for a subdirectory is another way to delete a subdirectory
  45. from the Dired buffer.
  46.  
  47.    The `g' command brings back any individual lines that you have
  48. killed in this way, but not subdirectories--you must use `i' to
  49. reinsert each subdirectory.
  50.  
  51. 
  52. File: emacs,  Node: Dired and Find,  Prev: Dired Updating,  Up: Dired
  53.  
  54. Dired and `find'
  55. ================
  56.  
  57.    You can select a set of files for display in a Dired buffer more
  58. flexibly by using the `find' utility to choose the files.
  59.  
  60.    To search for files with names matching a wildcard pattern use `M-x
  61. find-name-dired'.  It reads arguments DIRECTORY and PATTERN, and
  62. chooses all the files in DIRECTORY or its subdirectories whose
  63. individual names match PATTERN.
  64.  
  65.    The files thus chosen are displayed in a Dired buffer in which the
  66. ordinary Dired commands are available.
  67.  
  68.    If you want to test the contents of files, rather than their names,
  69. use `M-x find-grep-dired'.  This command reads two minibuffer
  70. arguments, DIRECTORY and REGEXP; it chooses all the files in DIRECTORY
  71. or its subdirectories that contain a match for REGEXP.  It works by
  72. running the programs `find' and `grep'.
  73.  
  74.    The most general command in this series is `M-x find-dired', which
  75. lets you specify any condition that `find' can test.  It takes two
  76. minibuffer arguments, DIRECTORY and FIND-ARGS; it runs `find' in
  77. DIRECTORY, passing FIND-ARGS to tell `find' what condition to test.  To
  78. use this command, you need to know how to use `find'.
  79.  
  80. 
  81. File: emacs,  Node: Calendar/Diary,  Next: GNUS,  Prev: Dired,  Up: Top
  82.  
  83. The Calendar and the Diary
  84. **************************
  85.  
  86.    Emacs provides the functions of a desk calendar, with a diary of
  87. planned or past events.  To enter the calendar, type `M-x calendar';
  88. this displays a three-month calendar centered on the current month, with
  89. point on the current date.  If you use prefix argument as in `C-u M-x
  90. calendar', it prompts you for the month and year to be the center of
  91. the three-month calendar.  The calendar uses its own buffer and the
  92. major mode is Calendar mode.
  93.  
  94.    To exit the calendar, type `q'.
  95.  
  96. * Menu:
  97.  
  98. * Calendar Motion::       Moving through the calendar; selecting a date.
  99. * Scroll Calendar::       Bringing earlier or later months onto the screen.
  100. * Counting Days::         How many days are there between two dates?
  101. * General Calendar::      Exiting or recomputing the calendar.
  102. * Holidays::              Displaying dates of holidays.
  103. * Sunrise/Sunset::        Displaying local times of sunrise and sunset.
  104. * Lunar Phases::          Displaying phases of the moon.
  105. * Other Calendars::       Converting dates to other calendar systems.
  106. * Diary::                 Displaying events from your diary.
  107. * Appointments::      Reminders when it's time to do something.
  108. * Daylight Savings::      How to specify when daylight savings time is active.
  109.  
  110. 
  111. File: emacs,  Node: Calendar Motion,  Next: Scroll Calendar,  Up: Calendar/Diary
  112.  
  113. Movement in the Calendar
  114. ========================
  115.  
  116.    Calendar mode lets you move in logical units of time such as days,
  117. weeks, months, and years.  If you move outside the three months
  118. originally displayed, the calendar display scrolls automatically through
  119. time.  Moving to a date lets you view its holidays or diary entries,
  120. convert it to other calendars; moving longer time periods is useful
  121. simply to scroll the calendar.
  122.  
  123. * Menu:
  124.  
  125. * Calendar Unit Motion::       Moving by days, weeks, months, and years.
  126. * Move to Beginning or End::   Moving to start/end of weeks, months, and
  127.                                  years.
  128. * Specified Dates::            Moving to the current date or another
  129.                                  specific date.
  130.  
  131. 
  132. File: emacs,  Node: Calendar Unit Motion,  Next: Move to Beginning or End,  Up: Calendar Motion
  133.  
  134. Motion by Integral Days, Weeks, Months, Years
  135. ---------------------------------------------
  136.  
  137.    The commands for movement in the calendar buffer parallel the
  138. commands for movement in text.  You can move forward and backward by
  139. days, weeks, months, and years.
  140.  
  141. `C-f'
  142.      Move point one day forward (`calendar-forward-day').
  143.  
  144. `C-b'
  145.      Move point one day backward (`calendar-backward-day').
  146.  
  147. `C-n'
  148.      Move point one week forward (`calendar-forward-week').
  149.  
  150. `C-p'
  151.      Move point one week backward (`calendar-backward-week').
  152.  
  153. `M-}'
  154.      Move point one month forward (`calendar-forward-month').
  155.  
  156. `M-{'
  157.      Move point one month backward (`calendar-backward-month').
  158.  
  159. `C-x ]'
  160.      Move point one year forward (`calendar-forward-year').
  161.  
  162. `C-x ['
  163.      Move point one year backward (`calendar-forward-year').
  164.  
  165.    The day and week commands are natural analogues of the usual Emacs
  166. commands for moving by characters and by lines.  Just as `C-n' usually
  167. moves to the same column in the following line, in Calendar mode it
  168. moves to the same day in the following week.  And `C-p' moves to the
  169. same day in the previous week.
  170.  
  171.    The arrow keys are equivalent to `C-f', `C-b', `C-n' and `C-p', just
  172. as they normally are in other modes.
  173.  
  174.    The commands for motion by months and years work like those for
  175. weeks, but move a larger distance.  The month commands `M-}' and `M-{'
  176. move forward or backward by an entire month's time.  The year commands
  177. `C-x ]' and `C-x [' move forward or backward a whole year.
  178.  
  179.    The easiest way to remember these commands is to consider months and
  180. years analogous to paragraphs and pages of text, respectively.  But the
  181. commands themselves are not quite analogous.  The ordinary Emacs
  182. paragraph commands move to the beginning or end of a paragraph, whereas
  183. these month and year commands move by an entire month or an entire
  184. year, which usually involves skipping across the end of a month or year.
  185.  
  186.    All these commands accept a numeric argument as a repeat count.  For
  187. convenience, the digit keys and the minus sign specify numeric
  188. arguments in Calendar mode even without the Meta modifier.  For example,
  189. `100 C-f' moves point 100 days forward from its present location.
  190.  
  191. 
  192. File: emacs,  Node: Move to Beginning or End,  Next: Specified Dates,  Prev: Calendar Unit Motion,  Up: Calendar Motion
  193.  
  194. Beginning or End of Week, Month or Year
  195. ---------------------------------------
  196.  
  197.    A week (or month, or year) is not just a quantity of days; we think
  198. of new weeks (months, years) as starting on particular days.  So
  199. Calendar mode provides commands to move to the beginning or end of a
  200. week, month or year:
  201.  
  202. `C-a'
  203.      Move point to beginning of week (`calendar-beginning-of-week').
  204.  
  205. `C-e'
  206.      Move point to end of week (`calendar-end-of-week').
  207.  
  208. `M-a'
  209.      Move point to beginning of month (`calendar-beginning-of-month').
  210.  
  211. `M-e'
  212.      Move point to end of month (`calendar-end-of-month').
  213.  
  214. `M-<'
  215.      Move point to beginning of year (`calendar-beginning-of-year').
  216.  
  217. `M->'
  218.      Move point to end of year (`calendar-end-of-year').
  219.  
  220.    These commands also take numeric arguments as repeat counts, with the
  221. repeat count indicating how many weeks, months, or years to move
  222. backward or forward.
  223.  
  224.    By default, weeks begin on Sunday.  To make them begin on Monday
  225. instead, set the variable `calendar-week-start-day' to 1.
  226.  
  227. 
  228. File: emacs,  Node: Specified Dates,  Prev: Move to Beginning or End,  Up: Calendar Motion
  229.  
  230. Particular Dates
  231. ----------------
  232.  
  233.    Calendar mode provides commands for getting to a particular date
  234. specified absolutely.
  235.  
  236. `g d'
  237.      Move point to specified date (`calendar-goto-date').
  238.  
  239. `o'
  240.      Center calendar around specified month (`calendar-other-month').
  241.  
  242. `.'
  243.      Move point to today's date (`calendar-current-month').
  244.  
  245.    `g d' (`calendar-goto-date') prompts for a year, a month, and a day
  246. of the month, and then moves to that date.  Because the calendar
  247. includes all dates from the beginning of the current era, you must type
  248. the year in its entirety; that is, type `1990', not `90'.
  249.  
  250.    `o' (`calendar-other-month') prompts for a month and year, then
  251. centers the three-month calendar around that month.
  252.  
  253.    You can return to today's date with `.' (`calendar-current-month').
  254.  
  255. 
  256. File: emacs,  Node: Scroll Calendar,  Next: Counting Days,  Prev: Calendar Motion,  Up: Calendar/Diary
  257.  
  258. Scrolling in the Calendar
  259. =========================
  260.  
  261.    The calendar display scrolls automatically through time when you
  262. move out of the visible portion.  You can also scroll it manually.
  263. Imagine that the calendar window contains a long strip of paper with
  264. the months on it.  Scrolling it means moving the strip so that new
  265. months become visible in the window.
  266.  
  267. `C-x <'
  268.      Scroll calendar one month forward (`scroll-calendar-left').
  269.  
  270. `C-x >'
  271.      Scroll calendar one month backward (`scroll-calendar-right').
  272.  
  273. `C-v'
  274. `NEXT'
  275.      Scroll calendar three months forward
  276.      (`scroll-calendar-left-three-months').
  277.  
  278. `M-v'
  279. `PRIOR'
  280.      Scroll calendar three months backward
  281.      (`scroll-calendar-right-three-months').
  282.  
  283. `SPC'
  284.      Scroll the next window (`scroll-other-window').
  285.  
  286.    The most basic calendar scroll commands scroll by one month at a
  287. time.  This means that there are two months of overlap between the
  288. display before the command and the display after.  `C-x <' scrolls the
  289. calendar contents one month to the left; that is, it moves the display
  290. forward in time.  `C-x >' scrolls the contents to the right, which
  291. moves backwards in time.
  292.  
  293.    The commands `C-v' and `M-v' scroll the calendar by an entire
  294. "screenful"--three months--in analogy with the usual meaning of these
  295. commands.  `C-v' makes later dates visible and `M-v' makes earlier
  296. dates visible.  These commands take a numeric argument as a repeat
  297. count; in particular, since `C-u' (`universal-argument') multiplies the
  298. next command by four, typing `C-u C-v' scrolls the calendar forward by
  299. a year and typing `C-u M-v' scrolls the calendar backward by a year.
  300.  
  301.    The function keys NEXT and PRIOR are equivalent to `C-v' and `M-v',
  302. just as they are in other modes.
  303.  
  304.    In Calendar mode, you can use `SPC' (`scroll-other-window') to
  305. scroll the other window.  This is handy when you display a list of
  306. holidays or diary entries in another window.
  307.  
  308. 
  309. File: emacs,  Node: Counting Days,  Next: General Calendar,  Prev: Scroll Calendar,  Up: Calendar/Diary
  310.  
  311. Counting Days
  312. =============
  313.  
  314. `M-='
  315.      Display the number of days in the current region
  316.      (`calendar-count-days-region').
  317.  
  318.    To determine the number of days in the region, type `M-='
  319. (`calendar-count-days-region').  The numbers of days printed is
  320. *inclusive*; that is, it includes the days specified by mark and point.
  321.  
  322. 
  323. File: emacs,  Node: General Calendar,  Next: Holidays,  Prev: Counting Days,  Up: Calendar/Diary
  324.  
  325. Miscellaneous Calendar Commands
  326. ===============================
  327.  
  328. `p d'
  329.      Display day-in-year (`calendar-print-day-of-year').
  330.  
  331. `C-c C-l'
  332.      Regenerate the calendar window (`redraw-calendar').
  333.  
  334. `q'
  335.      Exit from calendar (`exit-calendar').
  336.  
  337.    To print the number of days elapsed since the start of the year, or
  338. the number of days remaining in the year, type the `p d' command
  339. (`calendar-print-day-of-year').  This displays both of those numbers in
  340. the echo area.  The number of days elapsed includes the selected date.
  341. The number of days remaining does not include that date.
  342.  
  343.    If the calendar window gets corrupted, type `C-c C-l'
  344. (`redraw-calendar') to redraw it.
  345.  
  346.    To exit from the calendar, type `q' (`exit-calendar').  This buries
  347. all buffers related to the calendar and returns the window display to
  348. what it was when you entered the calendar.
  349.  
  350. 
  351. File: emacs,  Node: Holidays,  Next: Sunrise/Sunset,  Prev: General Calendar,  Up: Calendar/Diary
  352.  
  353. Holidays
  354. ========
  355.  
  356.    The Emacs calendar knows about all major and many minor holidays,
  357. and can display them.
  358.  
  359. `h'
  360.      Display holidays for the selected date
  361.      (`calendar-cursor-holidays').
  362.  
  363. `x'
  364.      Mark holidays in the calendar window (`mark-calendar-holidays').
  365.  
  366. `u'
  367.      Unmark calendar window (`calendar-unmark').
  368.  
  369. `a'
  370.      List all holidays for the displayed three months in another window
  371.      (`list-calendar-holidays').
  372.  
  373. `M-x holidays'
  374.      List all holidays for three months around today's date in another
  375.      window.
  376.  
  377.    To see if any holidays fall on a given date, position point on that
  378. date in the calendar window and use the `h' command.  This names the
  379. holidays for that date, in the echo area if they fit there, otherwise
  380. in a separate window.
  381.  
  382.    To find the distribution of holidays for a wider period, use the `x'
  383. command.  This displays a `*' after each date on which a holiday falls.
  384. The command applies both to the currently visible months and to other
  385. months that subsequently become visible by scrolling.  To turn marking
  386. off and erase the current marks, type `u', which also erases any diary
  387. marks (*note Diary::.).
  388.  
  389.    To get even more detailed information, use the `a' command, which
  390. displays a separate buffer containing a list of all holidays in the
  391. current three-month range.
  392.  
  393.    The command `M-x holidays' displays the list of holidays for the
  394. current month and the preceding and succeeding months; this works even
  395. if you don't have a calendar window.  If you want the list of holidays
  396. centered around a different month, use `C-u M-x holidays', which
  397. prompts for the month and year.
  398.  
  399.    The holidays known to Emacs include American holidays and the major
  400. Christian, Jewish, and Islamic holidays; when floating point is
  401. available, the calendar also knows about solstices and equinoxes.
  402.  
  403.    The dates used by Emacs for holidays are based on *current
  404. practice*, not historical fact.  Historically, for instance, the start
  405. of daylight savings time and even its existence have varied from year to
  406. year, but present American law mandates that daylight savings time
  407. begins on the first Sunday in April.  In an American locale, Emacs
  408. always uses this definition, even though it is wrong for some prior
  409. years.
  410.  
  411. 
  412. File: emacs,  Node: Sunrise/Sunset,  Next: Lunar Phases,  Prev: Holidays,  Up: Calendar/Diary
  413.  
  414. Times of Sunrise and Sunset
  415. ===========================
  416.  
  417.    Emacs can tell you, to within a minute or two, the times of sunrise
  418. and sunset for any date, if floating point is available.
  419.  
  420. `S'
  421.      Display times of sunrise and sunset for the selected date
  422.      (`calendar-sunrise-sunset').
  423.  
  424. `M-x sunrise-sunset'
  425.      Display times of sunrise and sunset for today's date.
  426.  
  427. `C-u M-x sunrise-sunset'
  428.      Display times of sunrise and sunset for a specified date.
  429.  
  430.    Within the calendar, to display the *local times* of sunrise and
  431. sunset in the echo area, move point to the date you want, and type `S'.
  432.  
  433.    The command `M-x sunrise-sunset' is available outside the calendar
  434. to print this information for today's date or a specified date.  To
  435. specify a date other than today, use `C-u M-x sunrise-sunset', which
  436. prompts for the year, month, and day.
  437.  
  438.    Because the times of sunrise and sunset depend on the location on
  439. earth, you need to tell Emacs your latitude, longitude, and location
  440. name before using these commands.  Here is an example of what to set:
  441.  
  442.      (setq calendar-latitude 40.1)
  443.      (setq calendar-longitude -88.2)
  444.      (setq calendar-location-name "Urbana, IL")
  445.  
  446. Use one decimal place in the values of `calendar-latitude' and
  447. `calendar-longitude'.
  448.  
  449.    Your time zone also affects the local time of sunrise and sunset.
  450. Emacs usually gets this information from the operating system, but if
  451. these values are not what you want (or if the operating system does not
  452. supply them), you must set them yourself.  Here is an example:
  453.  
  454.      (setq calendar-time-zone -360)
  455.      (setq calendar-standard-time-zone-name "CST")
  456.      (setq calendar-daylight-time-zone-name "CDT")
  457.  
  458. The value of `calendar-time-zone' is the number of minutes difference
  459. between your local standard time and Coordinated Universal Time
  460. (Greenwich time).  The values of `calendar-standard-time-zone-name' and
  461. `calendar-daylight-time-zone-name' are the abbreviations used in your
  462. time zone.
  463.  
  464.    Emacs displays the times of sunrise and sunset *corrected for
  465. daylight savings time*.  *Note Daylight Savings::, for how daylight
  466. savings time is determined.
  467.  
  468.    You can display the times of sunrise and sunset for any location and
  469. any date with `C-u C-u M-x sunrise-sunset'.  This asks you for a
  470. longitude, latitude, number of minutes difference from Coordinated
  471. Universal Time, and date, and then tells you the times of sunrise and
  472. sunset for that location on that date.
  473.  
  474. 
  475. File: emacs,  Node: Lunar Phases,  Next: Other Calendars,  Prev: Sunrise/Sunset,  Up: Calendar/Diary
  476.  
  477. Phases of the Moon
  478. ==================
  479.  
  480.    Emacs can tell you the dates and times of the phases of the moon (new
  481. moon, first quarter, full moon, last quarter), if floating point is
  482. available.  This feature is useful for debugging problems that "depend
  483. on the phase of the moon."
  484.  
  485. `M'
  486.      Display the dates and times for all the quarters of the moon for
  487.      the three-month period shown (`calendar-phases-of-moon').
  488.  
  489. `M-x phases-of-moon'
  490.      Display dates and times of the quarters of the moon for three
  491.      months around today's date.
  492.  
  493.    Within the calendar, use the `M' command to display a separate
  494. buffer of the phases of the moon for the current three-month range.  The
  495. dates and times listed are accurate to within a few minutes.
  496.  
  497.    Outside the calendar, use the command `M-x phases-of-moon' to
  498. display the list of the phases of the moon for the current month and the
  499. preceding and succeeding months.  For information about a different
  500. month, use `C-u M-x phases-of-moon', which prompts for the month and
  501. year.
  502.  
  503.    The dates and times given for the phases of the moon are given in
  504. local time (corrected for daylight savings, when appropriate); but if
  505. the variable `calendar-time-zone' is void, Coordinated Universal Time
  506. (the Greenwich time zone) is used.  *Note Daylight Savings::.
  507.  
  508. 
  509. File: emacs,  Node: Other Calendars,  Next: Diary,  Prev: Lunar Phases,  Up: Calendar/Diary
  510.  
  511. Conversion To and From Other Calendars
  512. ======================================
  513.  
  514.    The Emacs calendar displayed is *always* the Gregorian calendar,
  515. sometimes called the "new style" calendar, which is used in most of the
  516. world today.  However, this calendar did not exist before the sixteenth
  517. century and was not widely used before the eighteenth century; it did
  518. not fully displace the Julian calendar and gain universal acceptance
  519. until the early twentieth century.  The Emacs calendar can display any
  520. month since January, year 1 of the current era, but the calendar
  521. displayed is the Gregorian, even for a date at which the Gregorian
  522. calendar did not exist.
  523.  
  524.    While Emacs cannot display other calendars, it can convert dates to
  525. and from several other calendars.
  526.  
  527. * Menu:
  528.  
  529. * Calendar Systems::      The calendars Emacs understands
  530.                 (aside from Gregorian).
  531. * To Other Calendar::     Converting the selected date to various calendars.
  532. * From Other Calendar::   Moving to a date specified in another calendar.
  533. * Mayan Calendar::      Moving to a date specified in a Mayan calendar.
  534.  
  535. 
  536. File: emacs,  Node: Calendar Systems,  Next: To Other Calendar,  Up: Other Calendars
  537.  
  538. Supported Calendar Systems
  539. --------------------------
  540.  
  541.    The ISO commercial calendar is used largely in Europe.
  542.  
  543.    The Julian calendar, named after Julius Caesar, was the one used in
  544. Europe throughout medieval times, and in many countries up until the
  545. nineteenth century.
  546.  
  547.    Astronomers use a simple counting of days elapsed since noon, Monday,
  548. January 1, 4713 B.C. on the Julian calendar.  The number of days elapsed
  549. is called the *Julian day number* or the *Astronomical day number*.
  550.  
  551.    The Hebrew calendar is the one used to determine the dates of Jewish
  552. holidays.  Hebrew calendar dates begin and end at sunset.
  553.  
  554.    The Islamic (Moslem) calendar is the one used to determine the dates
  555. of Moslem holidays.  There is no universal agreement in the Islamic
  556. world about the calendar; Emacs uses a widely accepted version, but the
  557. precise dates of Islamic holidays often depend on proclamation by
  558. religious authorities, not on calculations.  As a consequence, the
  559. actual dates of occurrence can vary slightly from the dates computed by
  560. Emacs.  Islamic calendar dates begin and end at sunset.
  561.  
  562.    The French Revolutionary calendar was created by the Jacobins after
  563. the 1789 revolution, to represent a more secular and nature-based view
  564. of the annual cycle, and to install a 10-day week in a rationalization
  565. measure similar to the metric system.  The French government officially
  566. abandoned this calendar at the end of 1805.
  567.  
  568.    The Maya of Central America used three separate, overlapping calendar
  569. systems, the *long count*, the *tzolkin*, and the *haab*.  Emacs knows
  570. about all three of these calendars.  Experts dispute the exact
  571. correlation between the Mayan calendar and our calendar; Emacs uses the
  572. Goodman-Martinez-Thompson correlation in its calculations.
  573.  
  574. 
  575. File: emacs,  Node: To Other Calendar,  Next: From Other Calendar,  Prev: Calendar Systems,  Up: Other Calendars
  576.  
  577. Converting To Other Calendars
  578. -----------------------------
  579.  
  580.    The following commands describe the selected date (the date at point)
  581. in various other calendar systems:
  582.  
  583. `p c'
  584.      Display ISO commercial calendar equivalent for selected day
  585.      (`calendar-print-iso-date').
  586.  
  587. `p j'
  588.      Display Julian date for selected day
  589.      (`calendar-print-julian-date').
  590.  
  591. `p a'
  592.      Display astronomical (Julian) day number for selected day
  593.      (`calendar-print-astro-day-number').
  594.  
  595. `p h'
  596.      Display Hebrew date for selected day
  597.      (`calendar-print-hebrew-date').
  598.  
  599. `p i'
  600.      Display Islamic date for selected day
  601.      (`calendar-print-islamic-date').
  602.  
  603. `p f'
  604.      Display French Revolutionary date for selected day
  605.      (`calendar-print-french-date').
  606.  
  607. `p m'
  608.      Display Mayan date for selected day (`calendar-print-mayan-date').
  609.  
  610.    Put point on the desired date of the Gregorian calendar, then type
  611. the appropriate keys.  The `p' is a mnemonic for "print" since Emacs
  612. "prints" the equivalent date in the echo area.
  613.  
  614. 
  615. File: emacs,  Node: From Other Calendar,  Next: Mayan Calendar,  Prev: To Other Calendar,  Up: Other Calendars
  616.  
  617. Converting From Other Calendars
  618. -------------------------------
  619.  
  620.    You can move to dates that you specify on the Commercial, Julian,
  621. astronomical, Hebrew, Islamic, or French calendars:
  622.  
  623. `g c'
  624.      Move to a date specified in the ISO commercial calendar
  625.      (`calendar-goto-iso-date').
  626.  
  627. `g j'
  628.      Move to a date specified in the Julian calendar
  629.      (`calendar-goto-julian-date').
  630.  
  631. `g a'
  632.      Move to a date specified in astronomical (Julian) day number
  633.      (`calendar-goto-astro-day-number').
  634.  
  635. `g h'
  636.      Move to a date specified in the Hebrew calendar
  637.      (`calendar-goto-hebrew-date').
  638.  
  639. `g i'
  640.      Move to a date specified in the Islamic calendar
  641.      (`calendar-goto-islamic-date').
  642.  
  643. `g f'
  644.      Move to a date specified in the French Revolutionary calendar
  645.      (`calendar-goto-french-date').
  646.  
  647.    These commands ask you for a date on the other calendar, move point
  648. to the Gregorian calendar date equivalent to that date, and display the
  649. other calendar's date in the echo area.  Emacs uses strict completion
  650. (*note Completion::.) whenever it asks you to type a month name, so you
  651. don't have to worry about the spelling of Hebrew, Islamic, or French
  652. names.
  653.  
  654.    One common question concerning the Hebrew calendar is the computation
  655. of the anniversary of a date of death, called a "yahrzeit."  The Emacs
  656. calendar includes a facility for such calculations.  If you are in the
  657. calendar, the command `M-x list-yahrzeit-dates' asks you for a range of
  658. years and then displays a list of the yahrzeit dates for those years
  659. for the date given by point.  If you are not in the calendar, this
  660. command first asks you for the date of death and the range of years,
  661. and then displays the list of yahrzeit dates.
  662.  
  663. 
  664. File: emacs,  Node: Mayan Calendar,  Prev: From Other Calendar,  Up: Other Calendars
  665.  
  666. Converting from the Mayan Calendar
  667. ----------------------------------
  668.  
  669.    Here are the commands to select dates based on the Mayan calendar:
  670.  
  671. `g m l'
  672.      Move to a date specified by the long count calendar
  673.      (`calendar-goto-mayan-long-count-date').
  674.  
  675. `g m p t'
  676.      Move to the previous occurrence of a place in the tzolkin calendar
  677.      (`calendar-previous-tzolkin-date').
  678.  
  679. `g m n t'
  680.      Move to the next occurrence of a place in the tzolkin calendar
  681.      (`calendar-next-tzolkin-date').
  682.  
  683. `g m p h'
  684.      Move to the previous occurrence of a place in the haab calendar
  685.      (`calendar-previous-haab-date').
  686.  
  687. `g m n h'
  688.      Move to the next occurrence of a place in the haab calendar
  689.      (`calendar-next-haab-date').
  690.  
  691. `g m p c'
  692.      Move to the previous occurrence of a place in the calendar round
  693.      (`calendar-previous-calendar-round-date').
  694.  
  695. `g m n c'
  696.      Move to the next occurrence of a place in the calendar round
  697.      (`calendar-next-calendar-round-date').
  698.  
  699.    To understand these commands, you need to understand the Mayan
  700. calendars.  The "long count" is a counting of days with these units:
  701.  
  702.      1 kin = 1 day   1 uinal = 20 kin   1 tun = 18 uinal
  703.      1 katun = 20 tun   1 baktun = 20 katun
  704.  
  705. Thus, the long count date 12.16.11.16.6 means 12 baktun, 16 katun, 11
  706. tun, 16 uinal, and 6 kin.  The Emacs calendar can handle Mayan long
  707. count dates as early as 7.17.18.13.1, but no earlier.  When you use the
  708. `g m l' command, type the Mayan long count date with the baktun, katun,
  709. tun, uinal, and kin separated by periods.
  710.  
  711.    The Mayan tzolkin calendar is a cycle of 260 days formed by a pair of
  712. independent cycles of 13 and 20 days.  Since this cycle repeats
  713. endlessly, Emacs provides commands to move backward and forward to the
  714. previous or next point in the cycle.  Type `g m p t' to go to the
  715. previous tzolkin date; Emacs asks you for a tzolkin date and moves point
  716. to the previous occurrence of that date.  Similarly, type `g m n t' to
  717. go to the next occurrence of a tzolkin date.
  718.  
  719.    The Mayan haab calendar is a cycle of 365 days arranged as 18 months
  720. of 20 days each, followed a 5-day monthless period.  Like the tzolkin
  721. cycle, this cycle repeats endlessly, and there are commands to move
  722. backward and forward to the previous or next point in the cycle.  Type
  723. `g m p h' to go to the previous haab date; Emacs asks you for a haab
  724. date and moves point to the previous occurrence of that date.
  725. Similarly, type `g m n h' to go to the next occurrence of a haab date.
  726.  
  727.    The Maya also used the combination of the tzolkin date and the haab
  728. date.  This combination is a cycle of about 52 years called a *calendar
  729. round*.  If you type `g m p c', Emacs asks you for both a haab and a
  730. tzolkin date and then moves point to the previous occurrence of that
  731. combination.  Use `g m p c' to move point to the next occurrence of a
  732. combination.  Emacs signals an error if the haab/tzolkin date you have
  733. typed is impossible.
  734.  
  735.    Emacs uses strict completion (*note Completion::.) whenever it asks
  736. you to type a Mayan name, so you don't have to worry about spelling.
  737.  
  738. 
  739. File: emacs,  Node: Diary,  Next: Appointments,  Prev: Other Calendars,  Up: Calendar/Diary
  740.  
  741. The Diary
  742. =========
  743.  
  744.    The Emacs diary keeps track of appointments or other events on a
  745. daily basis, in conjunction with the calendar.  To use the diary
  746. feature, you must first create a "diary file" containing a list of
  747. events and their dates.  Then Emacs can automatically pick out and
  748. display the events for today, for the immediate future, or for any
  749. specified date.
  750.  
  751.    By default, Emacs uses `~/diary' as the diary file.  This is the
  752. same file that the `calendar' utility uses.  A sample `~/diary' file is:
  753.  
  754.      12/22/1988 Twentieth wedding anniversary!!
  755.      &1/1. Happy New Year!
  756.      10/22 Ruth's birthday.
  757.      * 21, *: Payday
  758.      Tuesday--weekly meeting with grad students at 10am
  759.               Supowit, Shen, Bitner, and Kapoor to attend.
  760.      1/13/89 Friday the thirteenth!!
  761.      &thu 4pm squash game with Lloyd.
  762.      mar 16 Dad's birthday
  763.      April 15, 1989 Income tax due.
  764.      &* 15 time cards due.
  765.  
  766.    Although you probably will start by creating a diary manually, Emacs
  767. provides a number of commands to let you view, add, and change diary
  768. entries.
  769.  
  770. * Menu:
  771.  
  772. * Diary Commands::         Viewing diary entries and associated calendar dates.
  773. * Format of Diary File::   Entering events in your diary.
  774. * Date Formats::       Various ways you can specify dates.
  775. * Adding to Diary::       Commands to create diary entries.
  776. * Special Diary Entries::  Anniversaries, blocks of dates, cyclic entries, etc.
  777.  
  778. 
  779. File: emacs,  Node: Diary Commands,  Next: Format of Diary File,  Up: Diary
  780.  
  781. Commands Displaying Diary Entries
  782. ---------------------------------
  783.  
  784.    Once you have created a `~/diary' file, you can view it from within
  785. the calendar.  You can also view today's events outside of Calendar
  786. mode.
  787.  
  788. `d'
  789.      Display any diary entries for the selected date
  790.      (`view-diary-entries').
  791.  
  792. `s'
  793.      Display entire diary file (`show-all-diary-entries').
  794.  
  795. `m'
  796.      Mark all visible dates that have diary entries
  797.      (`mark-diary-entries').
  798.  
  799. `u'
  800.      Unmark calendar window (`calendar-unmark').
  801.  
  802. `M-x print-diary-entries'
  803.      Print hard copy of the diary display as it appears.
  804.  
  805. `M-x diary'
  806.      Display any diary entries for today's date.
  807.  
  808.    Displaying the diary entries with `d' shows in a separate window the
  809. diary entries for the selected date in the calendar.  The mode line of
  810. the new window shows the date of the diary entries and any holidays
  811. that fall on that date.
  812.  
  813.    If you specify a numeric argument with `d', it shows all the diary
  814. entries for that many successive days.  Thus, `2 d' displays all the
  815. entries for the selected date and for the following day.
  816.  
  817.    To get a broader view of which days are mentioned in the diary, use
  818. the `m' command.  This places a `+' after each date which has a diary
  819. entry.  The command applies both to the currently visible months and to
  820. other months that subsequently become visible by scrolling.  To turn
  821. marking off and erase the current marks, type `u', which also turns off
  822. holiday marks (*note Holidays::.).
  823.  
  824.    To see the full diary file, rather than just some of the entries, use
  825. the `s' command.
  826.  
  827.    Display of selected diary entries uses the selective display feature
  828. to hide entries that don't apply.  This is the same feature that Outline
  829. mode uses to show part of an outline (*note Outline Mode::.).  The diary
  830. buffer as you see it is an illusion, so simply printing the buffer does
  831. not print what you see on your screen.
  832.  
  833.    There is a special command to print hard copy of the diary buffer
  834. *as it appears*; this command is `M-x print-diary-entries'.  It sends
  835. the data directly to the printer.  You can customize it like
  836. `lpr-region' (*note Hardcopy::.).
  837.  
  838.    The command `M-x diary' displays the diary entries for the current
  839. date, independently of the calendar display, and optionally for the next
  840. few days as well; the variable `number-of-diary-entries' specifies how
  841. many days to include.  *Note Calendar/Diary Options:
  842. (elisp)Calendar/Diary Options.
  843.  
  844.    If you put `(diary)' in your `.emacs' file, this automatically
  845. displays a window with the day's diary entries, when you enter Emacs.
  846. The mode line of the displayed window shows the date and any holidays
  847. that fall on that date.
  848.  
  849. 
  850. File: emacs,  Node: Format of Diary File,  Next: Date Formats,  Prev: Diary Commands,  Up: Diary
  851.  
  852. The Diary File
  853. --------------
  854.  
  855.    Your "diary file" is a file that records events associated with
  856. particular dates.  The name of the diary file is specified by the
  857. variable `diary-file'; `~/diary' is the default.  You can use the same
  858. file for the `calendar' utility program, since its formats are a subset
  859. of the ones allowed by the Emacs diary facilities.
  860.  
  861.    Each entry in the diary file describes one event and consists of one
  862. or more lines.  An entry always begins with a date specification at the
  863. left margin.  The rest of the entry is simply text to describe the
  864. event.  If the entry has more than one line, then the lines after the
  865. first must begin with whitespace to indicate they continue a previous
  866. entry.  Lines that do not begin with valid dates and do not continue a
  867. preceding entry are ignored.
  868.  
  869.    You can inhibit the marking of certain diary entries in the calendar
  870. window; to do this, insert an ampersand (`&') at the beginning of the
  871. entry, before the date.  This has no effect on display of the entry in
  872. the diary window; it affects only marks on dates in the calendar
  873. window.  Nonmarking entries are especially useful for generic entries
  874. that would otherwise mark many different dates.
  875.  
  876.    If the first line of a diary entry consists only of the date or day
  877. name with no following blanks or punctuation, then the diary window
  878. display doesn't include that line; only the continuation lines appear.
  879. For example:
  880.  
  881.      02/11/1989
  882.            Bill B. visits Princeton today
  883.            2pm Cognitive Studies Committee meeting
  884.            2:30-5:30 Liz at Lawrenceville
  885.            4:00pm Dentist appt
  886.            7:30pm Dinner at George's
  887.            8:00-10:00pm concert
  888.  
  889. appears in the diary window without the date line at the beginning.
  890. This style of entry looks neater when you display just a single day's
  891. entries, but can cause confusion if you ask for more than one day's
  892. entries.
  893.  
  894.    You can edit the diary entries as they appear in the window, but it
  895. is important to remember that the buffer displayed contains the *entire*
  896. diary file, with portions of it concealed from view.  This means, for
  897. instance, that the `C-f' (`forward-char') command can put point at what
  898. appears to be the end of the line, but what is in reality the middle of
  899. some concealed line.
  900.  
  901.    *Be careful when editing the diary entries!*  Inserting additional
  902. lines or adding/deleting characters in the middle of a visible line
  903. cannot cause problems, but editing at the end of a line may not do what
  904. you expect.  Deleting a line may delete other invisible entries that
  905. follow it.  Before editing the diary, it is best to display the entire
  906. file with `s' (`show-all-diary-entries').
  907.  
  908. 
  909. File: emacs,  Node: Date Formats,  Next: Adding to Diary,  Prev: Format of Diary File,  Up: Diary
  910.  
  911. Date Formats
  912. ------------
  913.  
  914.    Here are some sample diary entries, illustrating different ways of
  915. formatting a date.  The examples all show dates in American order
  916. (month, day, year), but Calendar mode supports European order (day,
  917. month, year) as an option.
  918.  
  919.      4/20/93  Switch-over to new tabulation system
  920.      apr. 25  Start tabulating annual results
  921.      4/30  Results for April are due
  922.      */25  Monthly cycle finishes
  923.      Friday  Don't leave without backing up files
  924.  
  925.    The first entry appears only once, on April 20, 1993.  The second and
  926. third appear every year on the specified dates, and the fourth uses a
  927. wildcard (asterisk) for the month, so it appears on the 25th of every
  928. month.  The final entry appears every week on Friday.
  929.  
  930.    You can use just numbers to express a date, as in `MONTH/DAY' or
  931. `MONTH/DAY/YEAR'.  This must be followed by a nondigit.  In the date
  932. itself, MONTH and DAY are numbers of one or two digits.  YEAR is a
  933. number and may be abbreviated to the last two digits; that is, you can
  934. use `11/12/1989' or `11/12/89'.
  935.  
  936.    Dates can also have the form `MONTHNAME DAY' or `MONTHNAME DAY,
  937. YEAR', where the month's name can be spelled in full or abbreviated to
  938. three characters (with or without a period).  Case is not significant.
  939.  
  940.    A date may be "generic", or partially unspecified.  Then the entry
  941. applies to all dates that match the specification.  If the date does not
  942. contain a year, it is generic and applies to any year.  Alternatively,
  943. MONTH, DAY, or YEAR can be a `*'; this matches any month, day, or year,
  944. respectively.  Thus, a diary entry `3/*/*' matches any day in March of
  945. any year; so does `march *'.
  946.  
  947.    If you prefer the European style of writing dates--in which the day
  948. comes before the month--type `M-x european-calendar' while in the
  949. calendar, or set the variable `european-calendar-style' to `t' *before*
  950. using any calendar or diary command.  This mode interprets all dates in
  951. the diary in the European manner, and also uses European style for
  952. displaying diary dates.  (Note that there is no comma after the
  953. MONTHNAME in the European style.)  To go back to the (default) American
  954. style of writing dates, type `M-x american-calendar'.
  955.  
  956.    You can use the name of a day of the week as a generic date which
  957. applies to any date falling on that day of the week.  You can abbreviate
  958. the day of the week to three letters (with or without a period) or spell
  959. it in full; case is not significant.
  960.  
  961. 
  962. File: emacs,  Node: Adding to Diary,  Next: Special Diary Entries,  Prev: Date Formats,  Up: Diary
  963.  
  964. Commands to Add to the Diary
  965. ----------------------------
  966.  
  967.    While in the calendar, there are several commands to create diary
  968. entries:
  969.  
  970. `i d'
  971.      Add a diary entry for the selected date (`insert-diary-entry').
  972.  
  973. `i w'
  974.      Add a diary entry for the selected day of the week
  975.      (`insert-weekly-diary-entry').
  976.  
  977. `i m'
  978.      Add a diary entry for the selected day of the month
  979.      (`insert-monthly-diary-entry').
  980.  
  981. `i y'
  982.      Add a diary entry for the selected day of the year
  983.      (`insert-yearly-diary-entry').
  984.  
  985.    You can make a diary entry for a specific date by selecting that date
  986. in the calendar window and typing the `i d' command.  This command
  987. displays the end of your diary file in another window and inserts the
  988. date; you can then type the rest of the diary entry.
  989.  
  990.    If you want to make a diary entry that applies to a specific day of
  991. the week, select that day of the week (any occurrence will do) and type
  992. `i w'.  This inserts the day-of-week as a generic date; you can then
  993. type the rest of the diary entry.
  994.  
  995.    You can make a monthly diary entry in the same fashion.  Select the
  996. day of the month, use the `i m' command, and type rest of the entry.
  997. Similarly, you can insert a yearly diary entry with the `i y' command.
  998.  
  999.    All of the above commands make marking diary entries.  If you want
  1000. the diary entry to be nonmarking, give a prefix argument to the command.
  1001. For example, `C-u i w' makes a nonmarking, weekly diary entry.
  1002.  
  1003.    When you modify the diary file, be sure to save the file before
  1004. exiting Emacs.
  1005.  
  1006. 
  1007. File: emacs,  Node: Special Diary Entries,  Prev: Adding to Diary,  Up: Diary
  1008.  
  1009. Special Diary Entries
  1010. ---------------------
  1011.  
  1012.    In addition to entries based on calendar dates, your diary file can
  1013. contain "special entries" for regular events such as anniversaries.
  1014. These entries are based on Lisp expressions (sexps) that Emacs evaluates
  1015. as it scans the diary file.  Instead of a date, a special entry contains
  1016. `%%' followed by a Lisp expression which must begin and end with
  1017. parentheses.  The Lisp expression determines which dates the entry
  1018. applies to.
  1019.  
  1020.    Calendar mode provides commands to insert certain commonly used
  1021. special entries:
  1022.  
  1023. `i a'
  1024.      Add an anniversary diary entry for the selected date
  1025.      (`insert-anniversary-diary-entry').
  1026.  
  1027. `i b'
  1028.      Add a block diary entry for the current region
  1029.      (`insert-block-diary-entry').
  1030.  
  1031. `i c'
  1032.      Add a cyclic diary entry starting at the date
  1033.      (`insert-cyclic-diary-entry').
  1034.  
  1035.    If you want to make a diary entry that applies to the anniversary of
  1036. a specific date, move point to that date and use the `i a' command.
  1037. This displays the end of your diary file in another window and inserts
  1038. the anniversary description; you can then type the rest of the diary
  1039. entry.  The entry looks like this:
  1040.  
  1041.      %%(diary-anniversary 10 31 1948) Arthur's birthday
  1042.  
  1043. This entry applies to October 31 in any year after 1948; `10 31 1948'
  1044. specifies the date.  (If you are using the European calendar style, the
  1045. month and day are interchanged.)  The reason this expression requires a
  1046. beginning year is that advanced diary functions can use it to calculate
  1047. the number of elapsed years.
  1048.  
  1049.    You can make a diary entry entry for a block of dates by setting the
  1050. mark at the date at one end of the block, moving point to the date at
  1051. the other end of the block, and using the `i b' command.  This command
  1052. causes the end of your diary file to be displayed in another window and
  1053. the block description to be inserted; you can then type the diary
  1054. entry.  Here is a block diary entry that applies to all dates from June
  1055. 24, 1990 through July 10, 1990:
  1056.  
  1057.      %%(diary-block 6 24 1990 7 10 1990) Vacation
  1058.  
  1059. The `6 24 1990' indicates the starting date and the `7 10 1990'
  1060. indicates the stopping date.  (Again, if you are using the European
  1061. calendar style, the month and day are interchanged.)
  1062.  
  1063.    "Cyclic" diary entries repeat after a fixed interval of days.  To
  1064. create one, select the starting date and use the `i c' command.  The
  1065. command prompts for the length of interval, then inserts the entry.  It
  1066. looks like this:
  1067.  
  1068.      %%(diary-cyclic 50 3 1 1990) Renew medication
  1069.  
  1070. which applies to March 1, 1990 and every 50th day following; `3 1 1990'
  1071. specifies the starting date.  (If you are using the European calendar
  1072. style, the month and day are interchanged.)
  1073.  
  1074.    All three of the these commands make marking diary entries.  If you
  1075. want the diary entry to be nonmarking, give a numeric argument to the
  1076. command.  For example, `C-u i a' makes a nonmarking anniversary diary
  1077. entry.
  1078.  
  1079.    Marking sexp diary entries in the calendar is *extremely*
  1080. time-consuming, since every date visible in the calendar window must be
  1081. individually checked.  So it's a good idea to make sexp diary entries
  1082. nonmarking (with `&') when possible.
  1083.  
  1084.    Another sophisticated kind of sexp entry, a "floating" diary entry,
  1085. specifies a regularly-occurring event by offsets specified in days,
  1086. weeks, and months.  It is comparable to a crontab entry interpreted by
  1087. the `cron' utility.  Here is a nonmarking, floating diary entry that
  1088. applies to the last Thursday in November:
  1089.  
  1090.      &%%(diary-float 11 4 -1) American Thanksgiving
  1091.  
  1092. The 11 specifies November (the eleventh month), the 4 specifies Thursday
  1093. (the fourth day of the week, where Sunday is numbered zero), and the -1
  1094. specifies "last" (1 would mean "first", 2 would mean "second", -2 would
  1095. mean "second-to-last", and so on).  The month can be a single month or
  1096. a list of months.  Thus you could change the 11 above to `'(1 2 3)' and
  1097. have the entry apply to the last Thursday of January, February, and
  1098. March.  If the month is `t', the entry applies to all months of the
  1099. year.
  1100.  
  1101.    Most generally, special diary entries can perform arbitrary
  1102. computations to determine when they apply.  *Note Sexp Diary Entries:
  1103. (elisp)Sexp Diary Entries.
  1104.  
  1105. 
  1106. File: emacs,  Node: Appointments,  Next: Daylight Savings,  Prev: Diary,  Up: Calendar/Diary
  1107.  
  1108. Appointments
  1109. ============
  1110.  
  1111.    If you have a diary entry for an appointment, and that diary entry
  1112. begins with a recognizable time of day, Emacs can warn you, several
  1113. minutes beforehand, that that appointment is pending.  Emacs alerts you
  1114. to the appointment by displaying a message in the mode line.
  1115.  
  1116.    To enable appointment notification, you must enable the time display
  1117. feature of Emacs, `M-x display-time' (*note Mode Line::.).  You must
  1118. also add the function `appt-make-list' to the `diary-display-hook',
  1119. like this:
  1120.  
  1121.      (add-hook 'diary-display-hook 'appt-make-list)
  1122.  
  1123.    With these preparations done, when you display the diary (either with
  1124. the `d' command in the calendar window or with the `M-x diary'
  1125. command), it sets up an appointment list of all the diary entries found
  1126. with recognizable times of day, and reminds you just before each of
  1127. them.
  1128.  
  1129.    For example, if you the diary file contains these lines:
  1130.  
  1131.      Monday
  1132.        9:30am Coffee break
  1133.       12:00pm Lunch
  1134.  
  1135. Then on Mondays, after you have displayed the diary, you will be
  1136. reminded at 9:20am about your coffee break and at 11:50am about lunch.
  1137.  
  1138.    Diary entries can have the time in the conventional American style,
  1139. or in "military" style.  You need not be consistent; your diary file can
  1140. have a mixture of the two styles.
  1141.  
  1142.    Emacs updates the appointments list automatically just after
  1143. midnight.  This also displays the next days' diary entries in the diary
  1144. buffer, unless you set `appt-display-diary' to `nil'.
  1145.  
  1146.    You can also use the appointment notification facility like an alarm
  1147. clock.  The command `M-x appt-add' adds entries to the appointment list
  1148. without affecting your diary file.  You delete entries from the
  1149. appointment list with `M-x appt-delete'.
  1150.  
  1151.    You can turn off the appointment notification feature at any time by
  1152. setting `appt-issue-message' to `nil'.
  1153.  
  1154. 
  1155. File: emacs,  Node: Daylight Savings,  Prev: Appointments,  Up: Calendar/Diary
  1156.  
  1157. Daylight Savings Time
  1158. =====================
  1159.  
  1160.    Emacs understands the difference between standard time and daylight
  1161. savings time--the times given for sunrise, sunset, solstices,
  1162. equinoxes, and the phases of the moon take that into account.  The rules
  1163. for daylight savings time vary from place to place and have also varied
  1164. historically from year to year.  To do the job properly, Emacs needs to
  1165. know which rules to use.
  1166.  
  1167.    Some operating systems keep track of the rules that apply to the
  1168. place where you are; on these systems, Emacs gets the information it
  1169. needs from the system automatically.  If some or all of this
  1170. information is missing, Emacs fills in the gaps with the rules
  1171. currently used in Cambridge, Massachusetts.  If the resulting rules are
  1172. not what you want, you can tell Emacs the rules to use by setting
  1173. certain variables.
  1174.  
  1175.    These values should be Lisp expressions that refer to the variable
  1176. `year', and evaluate to the Gregorian date on which daylight savings
  1177. time starts or (respectively) ends, in the form of a list `(MONTH DAY
  1178. YEAR)'.  The values should be `nil' if your area does not use daylight
  1179. savings time.
  1180.  
  1181.    Emacs uses these expressions to determine the starting date of
  1182. daylight savings time for the holiday list and for correcting times of
  1183. day in the solar and lunar calculations.
  1184.  
  1185.    The values for Cambridge, Massachusetts are as follows:
  1186.  
  1187.      (calendar-nth-named-day 1 0 4 year)
  1188.      (calendar-nth-named-day -1 0 10 year)
  1189.  
  1190. i.e. the first 0th day (Sunday) of the fourth month (April) in the year
  1191. specified by `year', and the last Sunday of the tenth month (October)
  1192. of that year.  If daylight savings time were changed to start on
  1193. October 1, you would set `calendar-daylight-savings-starts' to this:
  1194.  
  1195.      (list 10 1 year)
  1196.  
  1197.    If there is no daylight savings time at your location, or if you want
  1198. all times in standard time, set `calendar-daylight-savings-starts' and
  1199. `calendar-daylight-savings-ends' to `nil'.
  1200.  
  1201.    This variable specifies the difference between daylight savings time
  1202. and standard time, measured in minutes.  The value for Cambridge is 60.
  1203.  
  1204.    These variables specify is the number of minutes after midnight
  1205. local time when the transition to and from daylight savings time should
  1206. occur.  For Cambridge, both variables' values are 120.
  1207.  
  1208. 
  1209. File: emacs,  Node: GNUS,  Next: Sorting,  Prev: Calendar/Diary,  Up: Top
  1210.  
  1211. GNUS
  1212. ====
  1213.  
  1214.    GNUS is an Emacs subsystem for reading and responding to netnews.
  1215. You can use GNUS to browse through news groups, look at summaries of
  1216. articles in specific group, and read articles of interest.  You can
  1217. respond to authors or write replies to all the readers of a news group.
  1218.  
  1219.    This section introduces GNUS and describes several basic features.
  1220. Full documentation will appear elsewhere.
  1221.  
  1222.    To start GNUS, type `M-x gnus RET'.
  1223.  
  1224. * Menu:
  1225.  
  1226. * Buffers of GNUS::   The Newsgroups, Summary and Article buffers.
  1227. * GNUS Startup::      What you should know about starting GNUS.
  1228. * Summary of GNUS::   A short description of the basic GNUS commands.
  1229.  
  1230. 
  1231. File: emacs,  Node: Buffers of GNUS,  Next: GNUS Startup,  Up: GNUS
  1232.  
  1233. GNUS's Three Buffers
  1234. --------------------
  1235.  
  1236.    GNUS creates and uses three Emacs buffers, each with its own
  1237. particular purpose and its own major mode.
  1238.  
  1239.    The "Newsgroup buffer" contains a list of newsgroups.  This is the
  1240. first buffer that GNUS displays when it starts up.  Normally the list
  1241. contains only the newsgroups to which you subscribe (which are listed in
  1242. your `.newsrc' file) and which contain unread articles.  Use this
  1243. buffer to select a specific newsgroup.
  1244.  
  1245.    The "Summary buffer" lists the articles in a single newsgroup,
  1246. including their subjects, their numbers, and who posted them.  GNUS
  1247. creates a Summary buffer for a newsgroup when you select the group in
  1248. the Newsgroup buffer.  Use this buffer to select an article, and to move
  1249. around in an article.
  1250.  
  1251.    The "Article buffer" displays the text of an article.  You rarely
  1252. need to select this buffer because you can read the text while keeping
  1253. the Summary buffer selected.
  1254.  
  1255.